from django.http import QueryDict


class GetQueryDict:
    def __init__(self,**kwargs):
        self.query_dict = QueryDict('', mutable=True, encoding='utf8')
        self.kwargs = kwargs

    def get_query(self):
        for kw in self.kwargs:
            self.query_dict.__setitem__(kw,self.kwargs.get(kw))
        return self.query_dict

